'''
Created on Apr 7, 2009

@author: Administrator
'''
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib.auth.views import login, logout
from com.ericyang.groupshopping.user.models import UserDetail
from com.ericyang.common.web import redirect, page404, response

users_dict = {
    'queryset': UserDetail.objects.all(),
}

urlpatterns = patterns('',
                       
    #change user's password
    (r'^changepw/?$', "com.ericyang.groupshopping.user.views.changepw"),
    
    #edit user profile
    (r'^edit/?$', 'com.ericyang.groupshopping.user.views.edit_user'),
    
    # view user profile
    (r'^(\w{4,20})/$', 'com.ericyang.groupshopping.user.views.view_user'),
    
    #default view user profile
    (r'^', 'com.ericyang.groupshopping.user.views.index_user'),
)
